package com.ztgf.pay.api.cms;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.ztgf.common.constant.Result;
import com.ztgf.common.enums.CodeEnum;
import com.ztgf.common.utils.StrUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.beans.BeanUtils;
import org.springframework.web.bind.annotation.*;
import java.util.Arrays;
import java.util.List;
import com.ztgf.pay.models.service.IPayFundSyncService;
import com.ztgf.pay.models.bo.PayFundSyncSaveBO;
import com.ztgf.pay.models.bo.PayFundSyncBO;
import com.ztgf.pay.models.dto.PayFundSyncDTO;

/**
 * 资金明细同步表控制器
 *
 * @author mxli
 * @Date 2023-02-22 20:47:02
 */

@RestController
@RequestMapping("/cms/payFundSync")
@Slf4j
@Api(value = "PayFundSyncController",tags = "资金明细同步表接口")
public class PayFundSyncController {

    @DubboReference
    private IPayFundSyncService payFundSyncService;

    @PostMapping("/saveSync")
    @ApiOperation(value = "保存资金明细同步表",notes = "保存资金明细同步表")
    public Result saveSync(PayFundSyncSaveBO saveBO){
        payFundSyncService.saveSync(saveBO.getStartDate(), saveBO.getEndDate());
        return new Result();
    }

}
